import React, { Suspense } from 'react';
import { Outlet } from 'react-router-dom';
import CommonLoading from '@/components/CommonLoading';
import ErrorBoundary from './ErrorBoundary';
import "@/assets/css/global.less";

const Layout = () => (
	<Suspense fallback={<CommonLoading loading={true} />} >
		<ErrorBoundary>
			<Outlet />
		</ErrorBoundary>
	</Suspense>
)

export default Layout;
